package sumoTween.demo.swing.animatedSimple;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class DemoWindow extends JFrame{

	DemoComponent demo;
	
	public DemoWindow()
	{
		demo=new DemoComponent();
		demo.setBounds(00, 00, 230,230);
		
		this.setBackground(Color.white);
		

		this.setLayout(null);
		this.add(demo);
		
		this.setBounds(0, 0, 180, 220);
		this.setVisible(true);
		this.setTitle("sumoTween easings");		
		

		
        this.addWindowListener(new WindowListener() {
			
			public void windowOpened(WindowEvent e) {}
			public void windowIconified(WindowEvent e) {}
			public void windowDeiconified(WindowEvent e) {}
			public void windowDeactivated(WindowEvent e) {}
			public void windowClosed(WindowEvent e) {}
			public void windowActivated(WindowEvent e) {}
			public void windowClosing(WindowEvent e) 
			{
				System.exit(0);
			}
		});
		
    	boolean running=true;
		while(running)
		{
			try {
				Thread.sleep(20);
			} catch (Exception e) {
				// TODO: handle exception
			}
			
			repaint();
		}
		
	}
	
	
}
